package com.example.common.util.constant;

/**
 * @Author juzipi
 * @Date 2021/7/17 10:28
 * @Info 工具类模块常量
 */
public class CommonUtilConstants {


    /**
     * jwt
     */
    public static final String JWT_SUBJECT = "YYT-USER";//生成token主题

    public static final String JWT_CLAIM_USER_ID = "userId";//jwt荷载 用户id

    public static final String JWT_CLAIM_USER_NAME = "userName";//jwt荷载 用户名字


    /**
     * rabbit-util模块
     */
    //短信mq
    public static final String SMS_EXCHANGE = "sms.exchange";//交换机
    public static final String SMS_QUEUE = "sms.queue";//队列
    public static final String SMS_ROUTING = "sms.routing";//路由

    //订单mq
    public static final String ORDER_EXCHANGE = "order.exchange";//交换机
    public static final String ORDER_QUEUE = "order.queue";//队列
    public static final String ORDER_ROUTING = "order.routing";//路由


    //定时任务
    public static final String TASK_EXCHANGE = "task.exchange";
    public static final String TASK_QUEUE = "task.queue";
    public static final String TASK_ROUTING = "task.routing";


    //邮件
    public static final String MAIL_EXCHANGE = "mail.exchange";
    public static final String MAIL_QUEUE = "mail.queue";
    public static final String MAIL_ROUTING = "mail.routing";
}
